ExtractFileDir

Prototype:

function ExtractFileDir(const FileName: string): String;

Description:

Extracts the drive and directory parts of the given file name. The resulting string is empty if FileName contains no drive and directory parts.